﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006EF RID: 1775
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFriendChallengeLineupScRsp : IMessage<GetFriendChallengeLineupScRsp>, IMessage, IEquatable<GetFriendChallengeLineupScRsp>, IDeepCloneable<GetFriendChallengeLineupScRsp>, IBufferMessage
	{
		// Token: 0x170016CC RID: 5836
		// (get) Token: 0x06004FF1 RID: 20465 RVA: 0x000D9C17 File Offset: 0x000D7E17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFriendChallengeLineupScRsp> Parser
		{
			get
			{
				return GetFriendChallengeLineupScRsp._parser;
			}
		}

		// Token: 0x170016CD RID: 5837
		// (get) Token: 0x06004FF2 RID: 20466 RVA: 0x000D9C1E File Offset: 0x000D7E1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFriendChallengeLineupScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170016CE RID: 5838
		// (get) Token: 0x06004FF3 RID: 20467 RVA: 0x000D9C30 File Offset: 0x000D7E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFriendChallengeLineupScRsp.Descriptor;
			}
		}

		// Token: 0x06004FF4 RID: 20468 RVA: 0x000D9C37 File Offset: 0x000D7E37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeLineupScRsp()
		{
		}

		// Token: 0x06004FF5 RID: 20469 RVA: 0x000D9C4C File Offset: 0x000D7E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeLineupScRsp(GetFriendChallengeLineupScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.cHMLHBJHONK_ = other.cHMLHBJHONK_;
			this.friendChallengeInfos_ = other.friendChallengeInfos_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004FF6 RID: 20470 RVA: 0x000D9C99 File Offset: 0x000D7E99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeLineupScRsp Clone()
		{
			return new GetFriendChallengeLineupScRsp(this);
		}

		// Token: 0x170016CF RID: 5839
		// (get) Token: 0x06004FF7 RID: 20471 RVA: 0x000D9CA1 File Offset: 0x000D7EA1
		// (set) Token: 0x06004FF8 RID: 20472 RVA: 0x000D9CA9 File Offset: 0x000D7EA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170016D0 RID: 5840
		// (get) Token: 0x06004FF9 RID: 20473 RVA: 0x000D9CB2 File Offset: 0x000D7EB2
		// (set) Token: 0x06004FFA RID: 20474 RVA: 0x000D9CBA File Offset: 0x000D7EBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool CHMLHBJHONK
		{
			get
			{
				return this.cHMLHBJHONK_;
			}
			set
			{
				this.cHMLHBJHONK_ = value;
			}
		}

		// Token: 0x170016D1 RID: 5841
		// (get) Token: 0x06004FFB RID: 20475 RVA: 0x000D9CC3 File Offset: 0x000D7EC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FriendChallengeInfo> FriendChallengeInfos
		{
			get
			{
				return this.friendChallengeInfos_;
			}
		}

		// Token: 0x06004FFC RID: 20476 RVA: 0x000D9CCB File Offset: 0x000D7ECB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFriendChallengeLineupScRsp);
		}

		// Token: 0x06004FFD RID: 20477 RVA: 0x000D9CDC File Offset: 0x000D7EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFriendChallengeLineupScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.CHMLHBJHONK == other.CHMLHBJHONK && this.friendChallengeInfos_.Equals(other.friendChallengeInfos_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004FFE RID: 20478 RVA: 0x000D9D3C File Offset: 0x000D7F3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CHMLHBJHONK)
			{
				num ^= this.CHMLHBJHONK.GetHashCode();
			}
			num ^= this.friendChallengeInfos_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004FFF RID: 20479 RVA: 0x000D9DA2 File Offset: 0x000D7FA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005000 RID: 20480 RVA: 0x000D9DAA File Offset: 0x000D7FAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005001 RID: 20481 RVA: 0x000D9DB4 File Offset: 0x000D7FB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.friendChallengeInfos_.WriteTo(ref output, GetFriendChallengeLineupScRsp._repeated_friendChallengeInfos_codec);
			if (this.CHMLHBJHONK)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.CHMLHBJHONK);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005002 RID: 20482 RVA: 0x000D9E20 File Offset: 0x000D8020
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CHMLHBJHONK)
			{
				num += 2;
			}
			num += this.friendChallengeInfos_.CalculateSize(GetFriendChallengeLineupScRsp._repeated_friendChallengeInfos_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005003 RID: 20483 RVA: 0x000D9E80 File Offset: 0x000D8080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFriendChallengeLineupScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CHMLHBJHONK)
			{
				this.CHMLHBJHONK = other.CHMLHBJHONK;
			}
			this.friendChallengeInfos_.Add(other.friendChallengeInfos_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005004 RID: 20484 RVA: 0x000D9EE1 File Offset: 0x000D80E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005005 RID: 20485 RVA: 0x000D9EEC File Offset: 0x000D80EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 64U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.CHMLHBJHONK = input.ReadBool();
					}
				}
				else
				{
					this.friendChallengeInfos_.AddEntriesFrom(ref input, GetFriendChallengeLineupScRsp._repeated_friendChallengeInfos_codec);
				}
			}
		}

		// Token: 0x04001F71 RID: 8049
		private static readonly MessageParser<GetFriendChallengeLineupScRsp> _parser = new MessageParser<GetFriendChallengeLineupScRsp>(() => new GetFriendChallengeLineupScRsp());

		// Token: 0x04001F72 RID: 8050
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001F73 RID: 8051
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04001F74 RID: 8052
		private uint retcode_;

		// Token: 0x04001F75 RID: 8053
		public const int CHMLHBJHONKFieldNumber = 8;

		// Token: 0x04001F76 RID: 8054
		private bool cHMLHBJHONK_;

		// Token: 0x04001F77 RID: 8055
		public const int FriendChallengeInfosFieldNumber = 5;

		// Token: 0x04001F78 RID: 8056
		private static readonly FieldCodec<FriendChallengeInfo> _repeated_friendChallengeInfos_codec = FieldCodec.ForMessage<FriendChallengeInfo>(42U, FriendChallengeInfo.Parser);

		// Token: 0x04001F79 RID: 8057
		private readonly RepeatedField<FriendChallengeInfo> friendChallengeInfos_ = new RepeatedField<FriendChallengeInfo>();
	}
}
